/**@Title   GradeRepository.java
 * @Package com.gong.repository
 * @Desc    
 * @Author  GongWenhua
 * @Date    2017年7月17日 下午2:56:01
 * @Version 1.0
*/
package com.gong.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;

import com.gong.bean.Grade;

public interface GradeRepository extends Repository<Grade, Integer> {
	
	public Grade findByGradeNum(String gradeNum);
	
	
	//JPQL
	@Query(" from Grade where gradeNum=:num ")
	public Grade findByGradeNumJPQL(@Param("num") String gradeNum );
}
